package com.coffee.attachment.excel;

/**
 * @author: songkui
 * @since: 2023/5/15 10:04
 */
public enum MochaDocumentType {
    Import(1),
    Export(2);

    private int code;

    MochaDocumentType(int code){
        this.code = code;
    }

    public int code() {
        return this.code;
    }

    public static MochaDocumentType codeOf(int code){
        MochaDocumentType[] vs = values();
        for (MochaDocumentType t : vs){
            if (t.code == code){
                return t;
            }
        }
        return null;
    }

}
